<!DOCTYPE HTML>
<html>

	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<meta name="HandheldFriendly" content="true" />
		<meta name="MobileOptimized" content="320" />
		<title>电视控制</title>
		<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
		<style type="text/css" media="screen">
			li {
				padding: 0.8em;
				border-bottom: 1px solid #eaeaea;
			}
			
			li:active {
				background: #f4f4f4;
			}
		</style>
	</head>

	<body>
		<header id="header">
			<div class="nvbt iback" onclick="back()"></div>
			<div class="nvtt">TVController</div>
		</header>
		<div id="dcontent" class="dcontent">
			<ul style="list-style:none;margin:0;padding:0;text-align:left;">
				<li onclick="changeChannel(1)">
					<span class="item">播放节目单1
						<div class="chs">点击切换节目1</div>
					</span>
				</li>
				<li onclick="changeChannel(2)">
					<span class="item">播放节目单2
						<div class="chs">点击切换节目2</div>
					</span>
				</li>
			</ul>
			
			
		</div>
	</body>
	<script type="text/javascript" src="../js/common.js"></script>
	<script type="text/javascript" src="../js/immersed.js"></script>
	<script type="text/javascript" src="../js/jquery-1.8.0.min.js"></script>
	<script type="text/javascript">
		
		function changeChannel(channel){
			console.log("播放控制："+channel)
			$.ajax({
				url : 'http://172.32.0.215:8888/jk/changeVideo',
				dataType : 'json',
				type : 'GET',
				data : {
					channel : channel
				}
				
			})
			
		}
		
	</script>
	
</html>